SUMMARY = "Mdio Netlink Driver"
DESCRIPTION = "Mdio Netlink Driver for mdio access use netlink socket."
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

inherit module

SRC_URI = "file://mdio-netlink.c \
	file://Makefile \
  file://mdio-netlink.h \
"
DEPENDS = "virtual/kernel"

inherit module

EXTRA_OEMAKE  = "ARCH=${ARCH}"
EXTRA_OEMAKE += "KDIR=${STAGING_KERNEL_BUILDDIR}"
 
do_install () {
  install -d ${D}/lib/modules/${KERNEL_VERSION}/extra
  install -m 0755 ${B}/mdio-netlink.ko ${D}/lib/modules/${KERNEL_VERSION}/extra/mdio-netlink.ko
}
S = "${WORKDIR}"
RPROVIDES_${PN} += "kernel-module-mdio-netlink"